home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-01-06 | 1.2 KB | 61 lines | [TEXT/EDIT] |
- // MacDefs.h
- // © Copyright 1984 Consulair Corp, All Rights Reserved.
- // Portions © Copyright Apple Computer, Inc: 1982, 1983, 1984
- // Stanford University, SUMEX project: 1984
-
- #ifdef ToolkitLoaded
- #Options E
- ####You cannot include Inside Mac header files with MacCmemdefs.h and MacCIOdefs.h####
- /* #######WARNING: This files uses an integer size of 32 bits. IT IS NOT COMPATIBLE
- with the header files MacCmemdefs.h and MacCIOdefs.h, which use a 16 bit integer. */
- #endif
-
- #ifndef MacdefsLoaded
-
- #define MacdefsLoaded
-
- // Generally Used Definitions
-
- typedef long OSType;
- typedef short OSErr;
- #define noErr 0
-
- // General Data Types
-
- typedef char *Ptr;
- typedef char **Handle;
-
- typedef long (*ProcPtr)(); /* pointer to a procedure */
-
- typedef struct
- {
- char count;
- char s[255];
- } Str255;
-
-
- // Points and Rectangles
-
- #define VHSelect int;
-
- typedef struct Point
- {
- short v, h;
- } Point;
-
- typedef struct Rect
- {
- Point topLeft;
- Point botRight;
- } Rect;
-
- #define top topLeft.v
- #define left topLeft.h
- #define bottom botRight.v
- #define right botRight.h
-
- #endif
-
-
-
-